package com.parkreport.admin.parkarea.action;

import java.io.IOException;

import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.ServletActionContext;

import com.parkreport.admin.parkarea.service.DmbService;
import com.parkreport.base.BaseAction;

public class DmbAction extends BaseAction {

	
	public String getTree(){
		HttpServletResponse response = ServletActionContext.getResponse();
		DmbService service = new DmbService();
		String treeStr = service.getDmbTree();
		
		log.info("treeStr==========="+treeStr);
		try {
			response.getWriter().write(treeStr);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
		return null;
	}
}
